package cn.wolfcode.car.business.mapper;

import cn.wolfcode.car.business.domain.Appointment;
import cn.wolfcode.car.business.query.AppointmentQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface AppointmentMapper {


    int insert(Appointment record);

    Appointment get(Long id);

    List<Appointment> selectAll();

    int update(Appointment record);

    List<Appointment> selectForList(AppointmentQueryObject qo);

    void changeStatus(@Param("id") Long id, @Param("status") Integer statusCancel);

    void arrival(@Param("id") Long id, @Param("arrival") Integer statusArrival, @Param("date") Date date);

    void deleteFlag(@Param("id") Long id, @Param("deleteFlag") Integer deleteDeleted);
}